<div id="menu">
  <g:if test="${session.user}">
    <b>Angemeldet: ${session.user}</b>
    <g:link controller="user" action="logout">Logout</g:link>
  </g:if>
  <g:else>
    <g:link controller="user" action="login">Login</g:link> |
    <g:link controller="user" action="register">Registrieren</g:link> 
  </g:else>
</div>
